From: Florian Müllner Date: Fri, 5 Nov 2010 17:48:04 +0000 (+0100) Subject: app-menu: Fix quit menu item X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9566 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=34aa46a844568432bf49163af3c0821a86e2e30a;p=gnome-shell.git app-menu: Fix quit menu item As popup menus now take focus for keyboard navigation, no application is focused when activating the menu. Use the target application instead, which keeps track of the application currently associated with the menu. https://bugzilla.gnome.org/show_bug.cgi?id=634103 --- diff --git a/js/ui/panel.js b/js/ui/panel.js index eb1e4a378..286699516 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -408,9 +408,9 @@ AppMenuButton.prototype = { }, _onQuit: function() { - if (this._focusedApp == null) + if (this._targetApp == null) return; - this._focusedApp.request_quit(); + this._targetApp.request_quit(); }, _onAppStateChanged: function(tracker, app) {